package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 仓库类型对象 mb_erp_equipment_stock_type
 *
 * @author chenqiang
 * @date 2023-10-16
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "mb_erp_equipment_stock_type")
@Schema(description="仓库类型")
public class EquipmentStockType extends BaseEntity {

private static final long serialVersionUID=1L;

    @Id
    @Generator(policy = UUIDPolicy.class)
    @Column(name = "ID_")
    @Schema(description = "主键")
    private String id;

    @Column(name = "STOCK_TYPE_NAME_")
    @Schema(description = "仓库类型名称")
    private String stockTypeName;

    @Column(name = "STOCK_TYPE_CODE_")
    @Schema(description = "仓库类型编码")
    private String stockTypeCode;

    @Column(name = "IS_VALID_")
    @Dict(dicCode = "ERP_COMMON_YESNO")
    @Schema(description = "是否有效")
    private String isValid;



}
